function mnist_dimensionality_plot(mnist, maxI, stp)
  dim = zeros(maxI, 1);
  
  for i = 20:stp:maxI
    dim(i) = test_dimensionality(mnist(1:i, :), 1);
  end
  
  plot(dim, '.o')
